home *** CD-ROM | disk | FTP | other *** search
- Path: newshost.lanl.gov!tanmoy
- From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
- Newsgroups: comp.lang.c
- Subject: Re: Looking for a clear screen function
- Date: 20 Feb 1996 15:46:55 GMT
- Organization: Los Alamos National Laboratory
- Message-ID: <TANMOY.96Feb20084655@qcd.lanl.gov>
- References: <4gaeba$d9h@nkosi.well.com> <3129AC77.5F25@fokus.gmd.de>
- NNTP-Posting-Host: qcd.lanl.gov
- Mime-Version: 1.0
- Content-Type: text
- In-reply-to: Watson's message of Tue, 20 Feb 1996 12:11:51 +0100
-
- In article <3129AC77.5F25@fokus.gmd.de> Watson <sayegh@fokus.gmd.de>
- writes:
- > Does anyone know of a clear screen function to use both in turboC++ on
- > a PC and one to use in standard C for Unix machines
-
- #include<stdio.h>
- for (int i=0;i<25;i++)
- printf("\n");
-
- This works at least on a screen with 25
- lines :-)
-
- Did you try it on a Tektronix 4010 screen?
-
- There's no standard function to clear
- the screen. In TurboC I guess it's clrscr()
- (prototyped in <conio.h>), with Unix it's
- clear()/wclear() (<curses.h>).
-
- In these cases, a reference to the FAQ is also useful.
-
- Cheers
- Tanmoy
- --
- tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
- Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
- Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
- <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
- internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
- fax: 1 (505) 665 3003 voice: 1 (505) 665 4733 [ Home: 1 (505) 662 5596 ]
-